Optimal. Leaf size=106 \[ 2 \sqrt {a+b \sqrt {x}+c x}-2 \sqrt {a} \tanh ^{-1}\left (\frac {2 a+b \sqrt {x}}{2 \sqrt {a} \sqrt {a+b \sqrt {x}+c x}}\right )+\frac {b \tanh ^{-1}\left (\frac {b+2 c \sqrt {x}}{2 \sqrt {c} \sqrt {a+b \sqrt {x}+c x}}\right )}{\sqrt {c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {1371, 748, 857,
635, 212, 738} \begin {gather*} 2 \sqrt {a+b \sqrt {x}+c x}-2 \sqrt {a} \tanh ^{-1}\left (\frac {2 a+b \sqrt {x}}{2 \sqrt {a} \sqrt {a+b \sqrt {x}+c x}}\right )+\frac {b \tanh ^{-1}\left (\frac {b+2 c \sqrt {x}}{2 \sqrt {c} \sqrt {a+b \sqrt {x}+c x}}\right )}{\sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 748
Rule 857
Rule 1371
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b \sqrt {x}+c x}}{x} \, dx &=2 \text {Subst}\left (\int \frac {\sqrt {a+b x+c x^2}}{x} \, dx,x,\sqrt {x}\right )\\ &=2 \sqrt {a+b \sqrt {x}+c x}-\text {Subst}\left (\int \frac {-2 a-b x}{x \sqrt {a+b x+c x^2}} \, dx,x,\sqrt {x}\right )\\ &=2 \sqrt {a+b \sqrt {x}+c x}+(2 a) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,\sqrt {x}\right )+b \text {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,\sqrt {x}\right )\\ &=2 \sqrt {a+b \sqrt {x}+c x}-(4 a) \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b \sqrt {x}}{\sqrt {a+b \sqrt {x}+c x}}\right )+(2 b) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c \sqrt {x}}{\sqrt {a+b \sqrt {x}+c x}}\right )\\ &=2 \sqrt {a+b \sqrt {x}+c x}-2 \sqrt {a} \tanh ^{-1}\left (\frac {2 a+b \sqrt {x}}{2 \sqrt {a} \sqrt {a+b \sqrt {x}+c x}}\right )+\frac {b \tanh ^{-1}\left (\frac {b+2 c \sqrt {x}}{2 \sqrt {c} \sqrt {a+b \sqrt {x}+c x}}\right )}{\sqrt {c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 105, normalized size = 0.99 \begin {gather*} 2 \sqrt {a+b \sqrt {x}+c x}+4 \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {x}-\sqrt {a+b \sqrt {x}+c x}}{\sqrt {a}}\right )-\frac {b \log \left (b+2 c \sqrt {x}-2 \sqrt {c} \sqrt {a+b \sqrt {x}+c x}\right )}{\sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 84, normalized size = 0.79
method | result | size |
derivativedivides | \(2 \sqrt {a +c x +b \sqrt {x}}+\frac {b \ln \left (\frac {\frac {b}{2}+c \sqrt {x}}{\sqrt {c}}+\sqrt {a +c x +b \sqrt {x}}\right )}{\sqrt {c}}-2 \sqrt {a}\, \ln \left (\frac {2 a +b \sqrt {x}+2 \sqrt {a}\, \sqrt {a +c x +b \sqrt {x}}}{\sqrt {x}}\right )\) | \(84\) |
default | \(2 \sqrt {a +c x +b \sqrt {x}}+\frac {b \ln \left (\frac {\frac {b}{2}+c \sqrt {x}}{\sqrt {c}}+\sqrt {a +c x +b \sqrt {x}}\right )}{\sqrt {c}}-2 \sqrt {a}\, \ln \left (\frac {2 a +b \sqrt {x}+2 \sqrt {a}\, \sqrt {a +c x +b \sqrt {x}}}{\sqrt {x}}\right )\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + b \sqrt {x} + c x}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a+c\,x+b\,\sqrt {x}}}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________